<%@tag pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="consignum" tagdir="/WEB-INF/tags"%>
<%@attribute name="id"%>
<%@attribute name="label"%>
<%@attribute name="styleClass"%>
<%@attribute name="styleClassLabelInput"%>
<%@attribute name="styleLabelInput"%>
<%@attribute name="styleDivRow"%>
<%@attribute name="styleClassSection" type="java.lang.String"%>
<%@attribute name="style"%>
<%@attribute name="icon"%>
<%@attribute name="pattern"%>
<%@attribute name="typeFormatter"%>
<%@attribute name="maxFractionDigits"%>
<%@attribute name="minFractionDigits"%>
<%@attribute name="rendered" type="java.lang.Boolean"%>
<%@attribute name="value" type="java.lang.Object"%>
<c:if test="${empty rendered or rendered eq true}">
<div <consignum:renderedField field="class" value="${styleDivRow}" /> >
   <section <consignum:renderedField field="class" value="${styleClassSection}"/>>
		
		<c:if test="${not empty label}">
			<label class="label" style="color: #555; font-weight: bolder;"> <c:out value="${label}" default=" " /></label> 
		</c:if>
		<label 
		<consignum:renderedField field="style" value="${styleLabelInput}"  />
		 <consignum:renderedField field="class" value="${styleClassLabelInput}" defaultValue="input" /> >
				<c:if test="${not empty icon}">
		  		  <i class="${icon}" /></i>
				</c:if>
				<c:if test="${typeFormatter eq 'Date'}">
					<c:if test="${not empty pattern}">
		
						<fmt:formatDate pattern="${pattern}" value="${value}" />
					</c:if>
					<c:if test="${empty pattern}">
						<c:out value="${value}" />
					</c:if>
				</c:if>
				<c:if test="${typeFormatter eq 'Number'}">
					<c:if test="${not empty pattern}">
		
						<fmt:formatNumber type="number" pattern="${pattern}" value="${value}" maxFractionDigits="${maxFractionDigits}" minFractionDigits="${minFractionDigits}" />
					</c:if>
				</c:if>
				<c:if test="${empty typeFormatter}">
					<c:out value="${value}" />
				</c:if>
		</label>
	</section>
	</div>
</c:if>